package seri;

import java.io.Serializable;


/**
 * 学生对象：
 * 	sex不要求序列化
 * 
 * @author Administrator
 * @date 2017年4月12日 
 * @copyright wonhigh.cn 
 */
public class Student implements Serializable {
	/**
	 * TODO:变量描述
	 */
	private static final long serialVersionUID = 1L;
	
	private String name;
	private int age;
	private transient String sex;

	public Student(String name, int age, String sex) {
		super();
		this.name = name;
		this.age = age;
		this.sex = sex;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	@Override
	public String toString() {
		return "Student [name=" + name + ", age=" + age + ", sex=" + sex + "]";
	}
}
